import axios from "axios";

const request = axios.create({
  timeout: 90000, // 请求超时 90 秒
});

/**
 * 请求拦截器
 */
request.interceptors.request.use(
  (config) => {
    console.log("请求Config：", config);
  },
  (error) => {
    console.log("请求Error：", error);
  }
);

/**
 * 相应拦截器
 */
request.interceptors.response.use(
  (response) => {
    console.log("响应Response", response);
  },
  (error) => {
    console.log("响应Error", error);
  }
);

export default request;
